package com.skyline.base.model;

import com.skyline.base.type.SiteType;

/**
 * 行政地点的POJO
 * 
 * @author Jairus Chan
 * @version 0.1
 * */
public class Site {
	private String id;
	private String name;
	private SiteType type;
	private String parent;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public SiteType getType() {
		return type;
	}

	public void setType(SiteType type) {
		this.type = type;
	}

	public void setType(String type) {
		if (type != null) {
			this.type = SiteType.valueOf(type);
		}
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}
	
	//TODO:重写toString()方法
}
